<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网站首页</title>
</head>
<body>
网站首页；
{% if request.user.is_authenticated %}
    欢迎：{{ request.user }} <a href="/auth/logout">注销</a>
{% else %}
    <a href="/toLogin">登录</a>
{% endif %}
</body>
</html>